package com.itcncp.ucenter.dao.model;

import java.io.Serializable;

public class ItcsPayerInfo implements Serializable {
    private Byte payerId;

    /**
     * 支付方名称
     *
     * @mbg.generated
     */
    private String payerWay;

    /**
     * 支付场景
     *
     * @mbg.generated
     */
    private String payerScen;

    /**
     * 支付渠道，支付宝或微信
     *
     * @mbg.generated
     */
    private String payChannel;

    private static final long serialVersionUID = 1L;

    public Byte getPayerId() {
        return payerId;
    }

    public void setPayerId(Byte payerId) {
        this.payerId = payerId;
    }

    public String getPayerWay() {
        return payerWay;
    }

    public void setPayerWay(String payerWay) {
        this.payerWay = payerWay;
    }

    public String getPayerScen() {
        return payerScen;
    }

    public void setPayerScen(String payerScen) {
        this.payerScen = payerScen;
    }

    public String getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(String payChannel) {
        this.payChannel = payChannel;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", payerId=").append(payerId);
        sb.append(", payerWay=").append(payerWay);
        sb.append(", payerScen=").append(payerScen);
        sb.append(", payChannel=").append(payChannel);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ItcsPayerInfo other = (ItcsPayerInfo) that;
        return (this.getPayerId() == null ? other.getPayerId() == null : this.getPayerId().equals(other.getPayerId()))
            && (this.getPayerWay() == null ? other.getPayerWay() == null : this.getPayerWay().equals(other.getPayerWay()))
            && (this.getPayerScen() == null ? other.getPayerScen() == null : this.getPayerScen().equals(other.getPayerScen()))
            && (this.getPayChannel() == null ? other.getPayChannel() == null : this.getPayChannel().equals(other.getPayChannel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPayerId() == null) ? 0 : getPayerId().hashCode());
        result = prime * result + ((getPayerWay() == null) ? 0 : getPayerWay().hashCode());
        result = prime * result + ((getPayerScen() == null) ? 0 : getPayerScen().hashCode());
        result = prime * result + ((getPayChannel() == null) ? 0 : getPayChannel().hashCode());
        return result;
    }
}